package com.park.web.controller;

import com.github.pagehelper.PageInfo;
import com.park.web.base.baseOperation.BaseController;
import com.park.web.core.wrapper.WrapMapper;
import com.park.web.core.wrapper.Wrapper;
import com.park.web.model.domain.basSystemUser;
import com.park.web.model.domain.crAccessPermissionInfo;
import com.park.web.model.dto.basSystemUserDto;
import com.park.web.service.crAccessPermissionInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@Api(value = "WEB - crAccessPermissionInfoController", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@RequestMapping(value = "crAccessPermissionInfo", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class crAccessPermissionInfoController extends BaseController {

    @Autowired
    crAccessPermissionInfoService icrAccessPermissionInfoService;

    @GetMapping("/selectAll")
    @ApiOperation(value = "查询所有信息", notes = "查询所有信息")
    public Wrapper<List<crAccessPermissionInfo>> queryWithPage() {
        var list = icrAccessPermissionInfoService.selectAll();
        return WrapMapper.okWithoutMessage(list);
    }
}
